const requireAll = requireContext => {
  return requireContext.keys().map(requireContext);
};
const context = require.context(
  /** ←这个方法是webpack了的*/ "./svg" /** ←不要用path.join等拼接,会报:`Uncaught TypeError: __webpack_require__(...).context is not a function`*/,
  false,
  /\.svg$/
);
console.log("context:", context);
const x = requireAll(context);
console.log("x:", x);
/*
(7) [Module, Module, Module, Module, Module, Module, Module]
0: Module
  default: BrowserSpriteSymbol {id: "icon-article", viewBox: "0 0 1024 1024", content: "<symbol class="icon" viewBox="0 0 1024 1024" xmlns…5L672.14375 90.125z m0 0" p-id="1159" /></symbol>", node: symbol#icon-article}
  __esModule: true
  Symbol(Symbol.toStringTag): "Module"
  __proto__: Object
1: Module {default: BrowserSpriteSymbol, __esModule: true, Symbol(Symbol.toStringTag): "Module"}
2: Module {default: BrowserSpriteSymbol, __esModule: true, Symbol(Symbol.toStringTag): "Module"}
3: Module {default: BrowserSpriteSymbol, __esModule: true, Symbol(Symbol.toStringTag): "Module"}
4: Module {default: BrowserSpriteSymbol, __esModule: true, Symbol(Symbol.toStringTag): "Module"}
5: Module {default: BrowserSpriteSymbol, __esModule: true, Symbol(Symbol.toStringTag): "Module"}
6: Module {default: BrowserSpriteSymbol, __esModule: true, Symbol(Symbol.toStringTag): "Module"}
length: 7
__proto__: Array(0)
*/
/**
其中的id由vue.config.js配置的svg-sprite-loader决定

以上每个Module会生成为 图 svg-sprite-loader与svg symbol的 svg <symbol>标签
*/

export { default } from "./index.vue";
